import {HEADER_DATA} from './actionTypes.js'
import axios from 'axios'

export const getHeaderDate = () => (dispatch) => {
  axios({
    method: 'get',
    url: '/json/header.json'
  }).then((resp) => {
    dispatch({
      type: HEADER_DATA,
      obj: resp.data
    })
  })
}